package com.hskn.hss.module.inspectionCfg.to;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-06
 */
@Data
@ApiModel(value = "车辆年检费修改接口-TO", description = "车辆年检费修改接口-TO")
public class UpdateTlInspectionCfgTO implements Serializable {
    @ApiModelProperty(value = "id", name = "id", example = "05fc631946a1414e895c460be6f5be91")
    @NotNull(message = "id不能为空")
    @NotBlank(message = "id不能为空")
    private String id;
    /**
     * 车牌号id
     */
    @ApiModelProperty(value = "车牌号id", name = "carnumid", example = "05fc631946a1414e895c460be6f5be91")
    @NotNull(message = "车牌号不能为空")
    @NotBlank(message = "车牌号不能为空")
    private String carnumid;

    /**
     * 码表里程(km)
     */
    @ApiModelProperty(value = "码表里程", name = "clockmileage")
    private Float clockmileage;


    /**
     * 总费用(元)
     */
    @ApiModelProperty(value = "总费用", name = "totalcost")
    @NotNull(message = "总费用不能为空")
    private BigDecimal totalcost;

    /**
     * 年检日期
     */
    @ApiModelProperty(value = "年检日期", name = "costtime")
    @NotNull(message = "年检日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date costtime;
    /**
     * 年检单号
     */
    @ApiModelProperty(value = "年检单号", name = "orderNo")
    private String orderNo;

    /**
     * 缴费人
     */
    @ApiModelProperty(value = "缴费人", name = "payusername")
    private String payusername;

    /**
     * 附件
     */
    @ApiModelProperty(value = "附件", name = "atta")
    private String atta;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", name = "place")
    private String place;


    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", name = "remark")
    private String remark;


    /**
     * 年检项目
     */
    @ApiModelProperty(value = "年检项目", name = "repairreason")
    private String repairreason;
}
